package com.zzx.threekingdom.card;

import com.zzx.threekingdom.card.Pattern.Color;
import com.zzx.threekingdom.card.Pattern.Points;
import com.zzx.threekingdom.resmanager.ResManager;

public class BaseCard extends PatternCard
{
    public enum BaseCardType
    {
        kill, evade, peach
    }
    BaseCardType mBaseCardType;
    
    public BaseCardType getType() { return mBaseCardType; }
    
    public BaseCard(BaseCardType type, Color color, Points points)
    {
        super(color, points);
        mCardType = CardType.base;
        mBaseCardType = type;
        switch(type)
        {
            case kill: setTextAndMap("杀");break;
            case evade: setTextAndMap("闪");break;
            case peach: setTextAndMap("桃");break;
        }
    }
    
    public static boolean isBaseCardType(Card card, BaseCardType type)
    {
        return ((card!=null) && (card instanceof BaseCard) && (((BaseCard)card).getType()==type));
    }

}
